CommonEvent 151
Name = "死神：キャラの成長を初期化"

  999([151])
  ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
  ShowText(["\\n<Reaper>You wish to reset a character's growth...?\nThey shall revert to as they were when you first recruited them."])
  ShowText([""])
  ShowText([""])
  ShowChoices([["Go back", "Reset"], 0])
  When([0, "やめておく"])
    MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
    ErasePicture([5])
    ExitEventProcessing([])
    Empty([])

  When([1, "初期化する"])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>Very well. Who shall I reset?"])
    ShowText([""])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["if $game_variables[11] != names.size"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[12] = actor.id"])
    ScriptMore(["else"])
    ScriptMore(["$game_variables[12] = 0"])
    ScriptMore(["end"])
    ConditionalBranch([1, 12, 0, 0, 0])
      MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>I'll ask once more. Do you really wish to reset this character?"])
    ShowText([""])
    ShowText([""])
    ShowChoices([["GO BACK", "Reset"], 0])
    When([0, "やっぱりやめる"])
      MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    When([1, "初期化する"])
      Script(["clear_actor_ex(v(12))"])
      ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
      ShowText(["\\n<Reaper>......"])
      ShowText([""])
      ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
      ShowText(["\\n<Reaper>...Reset complete. They've reverted to as they were when you first recruited them."])
      ShowText([""])
      ShowText([""])
      MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    ChoicesEnd([])
    Empty([])

  ChoicesEnd([])
  MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
  ErasePicture([5])
  ExitEventProcessing([])
  Empty([])
